package com.sunshine.springboot.controller.request;

import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Put请求测试
 *
 * @author WeiHong
 * @date 2018/8/13
 */
@RestController
@RequestMapping("put")
public class PutController {

    private final Map<String, Object> params = new HashMap<>(2);

    @PutMapping("put")
    public Map<String, Object> put(String id) {
        params.clear();
        params.put("id", id);
        return params;
    }
}
